package beanstao.util.type.base;

import java.sql.Timestamp;
import java.util.Date;

import beanstao.util.exception.technical.util.reflect.FailToCastObjectException;
import beanstao.util.type.Castor;

public class Timestamp2Datetime extends Castor<Timestamp, java.util.Date>
{

	@Override
	public Date cast(Timestamp src, Class<?> toType, String... args) throws FailToCastObjectException
	{
		return new java.util.Date(src.getTime());
	}

}
